package com.isdepci.project.carbon.mapper;

import com.isdepci.project.carbon.domain.BEleEmission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 电力排放Mapper接口
 *
 * @author isdepci
 * @date 2025-03-29
 */
public interface BEleEmissionMapper
{

    // 按照年份查询
    List<BEleEmission> selectByYear(@Param("projectId") Long projectId, @Param("startYear") String startYear, @Param("endYear") String endYear);

    // 按照月份查询
    List<BEleEmission> selectByMonth(@Param("projectId") Long projectId, @Param("startMonth") String startMonth, @Param("endMonth") String endMonth);



    /**
     * 查询电力排放
     */
     BEleEmission selectBEleEmissionById(Long id);

    /**
     * 查询电力排放列表
     */
     List<BEleEmission> selectBEleEmissionList(BEleEmission bEleEmission);

    /**
     * 新增电力排放
     */
     int insertBEleEmission(BEleEmission bEleEmission);

    /**
     * 修改电力排放
     */
     int updateBEleEmission(BEleEmission bEleEmission);

    /**
     * 删除电力排放
     */
     int deleteBEleEmissionById(Long id);

    /**
     * 批量删除电力排放
     */
     int deleteBEleEmissionByIds(Long[] ids);


    void insertList(@Param("list") List<BEleEmission> list);


    List<BEleEmission> selectEleEmissionListByProjectId(Long projectId);
}
